home *** CD-ROM | disk | FTP | other *** search
- on showSelection
- global gTB
- set n to mSelectCount(gTB)
- put n into field "totalCount"
- set temp to mGetPosition(gTB)
- mGoFirst(gTB)
- put EMPTY into field "zlist"
- set dummy to EMPTY
- repeat with i = 1 to n
- set nm to mGetField(gTB, "name")
- put nm & RETURN after dummy
- mGoNext(gTB)
- end repeat
- put dummy into field "zlist"
- mGo(gTB, temp)
- updateDisplay()
- end
-
- on updateDisplay
- global gTB
- set i to mGetPosition(gTB)
- set the foreColor of field "zlist" to 0
- set the foreColor of line i of field "zlist" to 235
- put mGetField(gTB, "section") into field "section"
- put mGetField(gTB, "category") into field "category"
- put mGetField(gTB, "name") into field "name"
- put mGetField(gTB, "filepath") into field "filepath"
- put mGetField(gTB, "auth/comp") into field "auth/comp"
- put mGetField(gTB, "url") into field "url"
- put mGetField(gTB, "version") into field "version"
- put mGetField(gTB, "description") into field "description"
- put mGetField(gTB, "contact") into field "contact"
- end
-
- on nextRecord
- global gTB, imagesprite, gpointer
- set errCode to mGoNext(gTB)
- put mGetField(gTB, "section") into field "section"
- put mGetField(gTB, "category") into field "category"
- put mGetField(gTB, "name") into field "name"
- put mGetField(gTB, "filepath") into field "filepath"
- put mGetField(gTB, "auth/comp") into field "auth/comp"
- put mGetField(gTB, "url") into field "url"
- put mGetField(gTB, "version") into field "version"
- put mGetField(gTB, "description") into field "description"
- put mGetField(gTB, "contact") into field "contact"
- end
-
- on prevRecord
- global gTB, imagesprite, gpointer
- set errCode to mGoPrevious(gTB)
- put mGetField(gTB, "section") into field "section"
- put mGetField(gTB, "category") into field "category"
- put mGetField(gTB, "name") into field "name"
- put mGetField(gTB, "filepath") into field "filepath"
- put mGetField(gTB, "auth/comp") into field "auth/comp"
- put mGetField(gTB, "url") into field "url"
- put mGetField(gTB, "version") into field "version"
- put mGetField(gTB, "description") into field "description"
- put mGetField(gTB, "contact") into field "contact"
- end
-
- on getDBPos
- global gTB, gpointer, dbPos
- set i to the text of member "totalCount"
- set dbPos to mGetPosition(gTB)
- if dbPos = i then
- set count to count + 1
- if count >= 2 then
- mGoFirst(gTB)
- set count to 0
- end if
- end if
- end
-